RequestDataMockTypes
import { RequestDataMockTypes } from "@hyper-fetch/core"
Description
Defined in request/request.types.ts:306
Preview
type RequestDataMockTypes<Response,Request> = RequestMockType<Response> | RequestMockType<Response>[] | (r: Request) => RequestMockType<Response> | (r: Request) => RequestMockType<Response>[] | (r: Request) => Promise<RequestMockType<Response>> | (r: Request) => Promise<RequestMockType<Response>>[];
Structure
{config:{requestSentDuration:number,responseDelay:number,responseReceivedDuration:number,status:number},data:\Response\ | \Response[]\ | \() => Response\} | {\n config: {\n requestSentDuration: number;\n responseDelay: number;\n responseReceivedDuration: number;\n status: number;\n };\n data: Response | Response[] | () => Response;\n }[] | (r: Request) => RequestMockType<Response> | (r: Request) => RequestMockType<Response>[] | (r: Request) => Promise<RequestMockType<Response>> | (r: Request) => Promise<RequestMockType<Response>>[]